package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 出库发运
 */
@Controller
@RequestMapping("/outOperation")
public class WmsCkfyRouter {
    @Autowired
    SysMenuService menuService;

    //主页面
    @RequestMapping(value = "/delivery/{menu}")
    public String toCkfy(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "wmsCkfy/ckfy";
    }
    /*跳转到创建装车单页面*/
    @RequestMapping(value = "/creat")
    public String toCreat(String ids, Model model) {
        System.out.println(ids);
        model.addAttribute("ids",ids);
        return "wmsCkfy/creatZcd";
    }
    /*跳转到下发装车单页面*/
    @RequestMapping(value = "/lowerTask")
    public String toLowerTask(String ids, Model model) {
        model.addAttribute("ids",ids);
        return "wmsCkfy/lowerTask";
    }
}
